<h1>{{ document.folder.name }}/{{document.name}}</h1>

<div>
{% if requirement_list %}
   <ul>
   {% for req in requirement_list %}
      <div><li>{{req.order}}:{{req.unique}}</li>
         <ul>
         {% if req.section %}
            <li> Section: {{req.section.kind}}&nbsp;{{req.section.text}}</li>
         {% endif %}
         {% if req.onelinetext %}
            <li> One liner: {{req.onelinetext.text}}</li>
         {% endif %}
         {% if req.multilinetext %}
            <li> Multi liner: {{req.multilinetext.text}}</li>
         {% endif %}
         {% if req.alias %}
            <li> Alias: {{req.alias.alias}}</li>
         {% endif %}
         {% if req.table %}
            <li> Table: {{req.table.columns}}&nbsp;{{req.table.text}}</li>
         {% endif %}
         {% if req.variable %}
            <li> Variable: {{req.variable.name}}={{req.variable.value}}</li>
         {% endif %}
         {% if req.file %}
            <li> File: {{req.file.file}}</li>
         {% endif %}
         {% if req.image %}
            <li> Image: {{req.image.image}}</li>
         {% endif %}
         </ul>
      </div>
   {% endfor %}
   </ul>
{% else %} {# XXX use empty #}
   <p>No requirements here</p>
{% endif %}
</div>
